<template>
  <div>
    <h3 class="text-lg text-center bg-gray-100 py-2">wiki导航</h3>

    <bread-crumb />

    <div class="flex justify-between items-center">
      <a href="#edt"><el-button>回复</el-button></a>

      <the-page ref="page" />
    </div>

    <ul class="mt-2">
      <li class="flex items-center border-y">
        <div
          class="w-40 flex-shrink-0 text-xs flex items-center p-4 bg-gray-100"
        >
          <span class=""> 查看: </span>
          <span class="text-red-500">123</span>
          <span class="ml-2">回复: </span>
          <span class="text-red-500">456</span>
        </div>
        <div class="grow px-4">
          <span class="font-semibold">泰拉瑞亚1.4.4更新内容前瞻</span>
        </div>
      </li>

      <li class="flex mt-1 border-b" v-for="item in 4" :key="item">
        <div
          class="w-40 flex-shrink-0 text-sm px-4 py-2 bg-gray-100 text-xs text-gray-500 text-center"
        >
          <div class="border-b border-gray-200">破晓</div>
          <img
            src="@/assets/images/avatar.jpg"
            class="mx-auto mt-2 w-20 h-20 border-4 border-white rounded"
          />
          <div class="mt-2">来自: 澳大利亚 悉尼</div>
        </div>
        <div class="grow p-4">
          <div class="flex items-center">
            <el-image
              :src="require('@/assets/images/avatar.jpg')"
              class="w-6 h-6 rounded"
            ></el-image>
            <div class="ml-2 text-xs text-gray-500">
              破晓 发表于: 2022-9-15 09:11
            </div>
          </div>
          <div class="mt-4 leading-7 text-gray-600 px-4 text-sm">
            <p>
              Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean
              euismod bibendum laoreet. Proin gravida dolor sit amet lacus
              accumsan et viverra justo commodo. Proin sodales pulvinar sic
              tempor. Sociis natoque
            </p>
            <p class="mt-2">
              Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean
              euismod bibendum laoreet. Proin gravida dolor sit amet lacus
              accumsan et viverra justo commodo. Proin sodales pulvinar sic
              tempor. Sociis natoque
            </p>
          </div>
        </div>
      </li>
    </ul>

    <div class="flex items-center justify-between">
      <a href="#edt"><el-button>回复</el-button></a>
      <the-page ref="page2" class="mt-6" />
    </div>

    <the-editor ref="edt" id="edt" />
  </div>
</template>

<script>
import thePage from "@/components/page.vue";
import breadCrumb from "@/components/categories/bread-crumb.vue";
import theEditor from "@/components/editor.vue";

export default {
  components: { thePage, breadCrumb, theEditor },
  computed: {
    id() {
      return this.$route.params.id;
    },
  },
  mounted() {
    this.$refs.page.total = 88;
    this.$refs.page2.total = 88;
  },
};
</script>

<style>
</style>